package jpa.entitys.promis.common;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the VW_SYNC_RCVD_RENT_INV database table.
 * 
 */
@Entity
@Table(name="VW_SYNC_RCVD_RENT_INV_UNUSE")
@NamedQueries({
    @NamedQuery(name = "VwSyncRcvdRentInv.findAll", query = " SELECT c FROM VwSyncRcvdRentInv c "),
    @NamedQuery(name = "VwSyncRcvdRentInv.findById", query = " SELECT c FROM VwSyncRcvdRentInv c WHERE c.pmsPaymentReceiptDetailsId = :Id "),
    @NamedQuery(name = "VwSyncRcvdRentInv.findByStatus", query = " SELECT c FROM VwSyncRcvdRentInv c WHERE c.status = :status And c.syncIsstaging = :syncIsstaging "),
    @NamedQuery(name = "VwSyncRcvdRentInv.findByDocumentNo", query = " SELECT c FROM VwSyncRcvdRentInv c WHERE c.company = :company And c.project =:project And c.documentNo = :documentNo And c.status = :status And c.syncIsstaging = :syncIsstaging")
})
public class VwSyncRcvdRentInv extends jpa.entitys.common.CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="PMS_PAYMENT_RECEIPT_DETAILS_ID", length=4000)
	private String pmsPaymentReceiptDetailsId;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}
	
	@Column(name="AMOUNT_RECEIVED", precision=16, scale=2)
	private BigDecimal amountReceived;

	@Column(name="AR_REFERENCE_NUMBER", precision=6)
	private BigDecimal arReferenceNumber;

	@Column(name="AR_REFERENCE_SEQ", precision=6)
	private BigDecimal arReferenceSeq;

	@Column(name="AR_REFERENCE_SERIES", length=4)
	private String arReferenceSeries;

	@Column(name="AR_REFERENCE_TYPE", length=2)
	private String arReferenceType;

	@Column(name="BANK_CARD_READER", length=30)
	private String bankCardReader;

	@Column(name="BANK_CHARGE", precision=16, scale=2)
	private BigDecimal bankCharge;

	@Column(name="BANK_RATE", precision=16, scale=2)
	private BigDecimal bankRate;

	@Column(name="BUILDING_PHASE_CODE", length=30)
	private String buildingPhaseCode;

	@Column(name="CHARGE_CODE", nullable=false, length=30)
	private String chargeCode;

	@Column(name="CHEQUE_AMOUNT", precision=22)
	private BigDecimal chequeAmount;

	@Column(name="CHEQUE_ISSUING_BANK", length=50)
	private String chequeIssuingBank;

	@Column(name="CHEQUE_NUMBER", length=16)
	private String chequeNumber;

	@Column(name="CHEQUE_PAYEE_AC", length=30)
	private String chequePayeeAc;

	@Column(name="CHEQUE_PAYEE_DESC", length=11)
	private String chequePayeeDesc;

	@Column(length=2)
	private String company;

	@Column(name="CONTRACT_NO", precision=22)
	private BigDecimal contractNo;

	@Column(name="CONTRACT_REF_NO", length=4000)
	private String contractRefNo;

	@Column(name="CONTRACT_SEQ", precision=22)
	private BigDecimal contractSeq;

	@Column(name="CONTRACT_SERIES", length=4)
	private String contractSeries;

	@Column(name="CREATED_BY")
	private String createdBy;

	@Column(name="CREATED_BY_NAME", length=4000)
	private String createdByName;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(name="CREDIT_CARD_TYPE", length=30)
	private String creditCardType;

	@Column(length=3)
	private String currency;

	@Column(name="CUSTOMER_CODE", length=30)
	private String customerCode;

	@Column(length=4000)
	private String description;

	@Column(name="EXCHANGE_RATE", precision=22)
	private BigDecimal exchangeRate;

	@Column(name="INTERFACE_NO", length=4000)
	private String interfaceNo;

	@Column(name="INVOICE_REF_NO", length=4000)
	private String invoiceRefNo;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

	@Column(name="LAST_UPD_BY_NAME", length=4000)
	private String lastUpdByName;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="PMS_PAYMENTS_RECEIVED_ID", length=4000)
	private String pmsPaymentsReceivedId;

	@Column(length=30)
	private String project;

	@Column(name="RECEIVED_TYPE", length=1)
	private String receivedType;

	@Column(name="REF_DOCUMENT", length=300)
	private String refDocument;

	@Column(length=1000)
	private String remarks;

	@Column(name="SAP_COMPANY_CODE", length=4000)
	private String sapCompanyCode;

	@Column(name="SAP_PLANT_CODE", length=4000)
	private String sapPlantCode;

	@Column(name="SERVICE_VAT_FLAG", length=1)
	private String serviceVatFlag;

	@Column(length=1)
	private String status;

	@Column(name="SYNC_CREATEDBY", length=100)
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY", length=100)
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO", length=100)
	private String syncExternalRefNo;

	@Column(name="SYNC_ISSTAGING", length=1)
	private String syncIsstaging;

	@Column(name="SYNC_ISSYNC", length=1)
	private String syncIssync;

	@Column(name="SYNC_UPDATEDBY", length=100)
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="TAX_RATE", precision=5, scale=2)
	private BigDecimal taxRate;

	@Column(name="TAX_TYPE_CODE", length=2)
	private String taxTypeCode;

	@Column(name="TYPE_OF_CONTRACT", length=2)
	private String typeOfContract;

	@Column(name="UNIT_NUMBER", length=30)
	private String unitNumber;

	@Column(name="VAT_BASE_RECEIVED", precision=16, scale=2)
	private BigDecimal vatBaseReceived;

	@Column(name="VAT_CODE", length=2)
	private String vatCode;

	@Column(name="VAT_RECEIVED", precision=16, scale=2)
	private BigDecimal vatReceived;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="VOUCHER_DATE")
	private Date voucherDate;

	@Column(name="VOUCHER_NUMBER", precision=6)
	private BigDecimal voucherNumber;

	@Column(name="VOUCHER_SEQ", nullable=false, precision=6)
	private BigDecimal voucherSeq;

	@Column(name="VOUCHER_SERIES", length=4)
	private String voucherSeries;

	@Column(name="VOUCHER_TYPE", length=2)
	private String voucherType;

	@Column(name="WHT_AMOUNT", precision=16, scale=2)
	private BigDecimal whtAmount;

	@Column(name="WHT_BASE_AMOUNT", precision=16, scale=2)
	private BigDecimal whtBaseAmount;

	@Column(name="WHT_RATE", precision=5, scale=2)
	private BigDecimal whtRate;
	
	@Column(name="DOCUMENT_NO")
	private String documentNo;
	
    /**
	 * @return the documentNo
	 */
	public String getDocumentNo() {
		return documentNo;
	}
	
	/**
	 * @param documentNo the documentNo to set
	 */
	public void setDocumentNo(String documentNo) {
		this.documentNo = documentNo;
	}

    public VwSyncRcvdRentInv() {
    }

	public BigDecimal getAmountReceived() {
		return this.amountReceived;
	}

	public void setAmountReceived(BigDecimal amountReceived) {
		this.amountReceived = amountReceived;
	}

	public BigDecimal getArReferenceNumber() {
		return this.arReferenceNumber;
	}

	public void setArReferenceNumber(BigDecimal arReferenceNumber) {
		this.arReferenceNumber = arReferenceNumber;
	}

	public BigDecimal getArReferenceSeq() {
		return this.arReferenceSeq;
	}

	public void setArReferenceSeq(BigDecimal arReferenceSeq) {
		this.arReferenceSeq = arReferenceSeq;
	}

	public String getArReferenceSeries() {
		return this.arReferenceSeries;
	}

	public void setArReferenceSeries(String arReferenceSeries) {
		this.arReferenceSeries = arReferenceSeries;
	}

	public String getArReferenceType() {
		return this.arReferenceType;
	}

	public void setArReferenceType(String arReferenceType) {
		this.arReferenceType = arReferenceType;
	}

	public String getBankCardReader() {
		return this.bankCardReader;
	}

	public void setBankCardReader(String bankCardReader) {
		this.bankCardReader = bankCardReader;
	}

	public BigDecimal getBankCharge() {
		return this.bankCharge;
	}

	public void setBankCharge(BigDecimal bankCharge) {
		this.bankCharge = bankCharge;
	}

	public BigDecimal getBankRate() {
		return this.bankRate;
	}

	public void setBankRate(BigDecimal bankRate) {
		this.bankRate = bankRate;
	}

	public String getBuildingPhaseCode() {
		return this.buildingPhaseCode;
	}

	public void setBuildingPhaseCode(String buildingPhaseCode) {
		this.buildingPhaseCode = buildingPhaseCode;
	}

	public String getChargeCode() {
		return this.chargeCode;
	}

	public void setChargeCode(String chargeCode) {
		this.chargeCode = chargeCode;
	}

	public BigDecimal getChequeAmount() {
		return this.chequeAmount;
	}

	public void setChequeAmount(BigDecimal chequeAmount) {
		this.chequeAmount = chequeAmount;
	}

	public String getChequeIssuingBank() {
		return this.chequeIssuingBank;
	}

	public void setChequeIssuingBank(String chequeIssuingBank) {
		this.chequeIssuingBank = chequeIssuingBank;
	}

	public String getChequeNumber() {
		return this.chequeNumber;
	}

	public void setChequeNumber(String chequeNumber) {
		this.chequeNumber = chequeNumber;
	}

	public String getChequePayeeAc() {
		return this.chequePayeeAc;
	}

	public void setChequePayeeAc(String chequePayeeAc) {
		this.chequePayeeAc = chequePayeeAc;
	}

	public String getChequePayeeDesc() {
		return this.chequePayeeDesc;
	}

	public void setChequePayeeDesc(String chequePayeeDesc) {
		this.chequePayeeDesc = chequePayeeDesc;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public BigDecimal getContractNo() {
		return this.contractNo;
	}

	public void setContractNo(BigDecimal contractNo) {
		this.contractNo = contractNo;
	}

	public String getContractRefNo() {
		return this.contractRefNo;
	}

	public void setContractRefNo(String contractRefNo) {
		this.contractRefNo = contractRefNo;
	}

	public BigDecimal getContractSeq() {
		return this.contractSeq;
	}

	public void setContractSeq(BigDecimal contractSeq) {
		this.contractSeq = contractSeq;
	}

	public String getContractSeries() {
		return this.contractSeries;
	}

	public void setContractSeries(String contractSeries) {
		this.contractSeries = contractSeries;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedByName() {
		return this.createdByName;
	}

	public void setCreatedByName(String createdByName) {
		this.createdByName = createdByName;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getCreditCardType() {
		return this.creditCardType;
	}

	public void setCreditCardType(String creditCardType) {
		this.creditCardType = creditCardType;
	}

	public String getCurrency() {
		return this.currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public String getCustomerCode() {
		return this.customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public BigDecimal getExchangeRate() {
		return this.exchangeRate;
	}

	public void setExchangeRate(BigDecimal exchangeRate) {
		this.exchangeRate = exchangeRate;
	}

	public String getInterfaceNo() {
		return this.interfaceNo;
	}

	public void setInterfaceNo(String interfaceNo) {
		this.interfaceNo = interfaceNo;
	}

	public String getInvoiceRefNo() {
		return this.invoiceRefNo;
	}

	public void setInvoiceRefNo(String invoiceRefNo) {
		this.invoiceRefNo = invoiceRefNo;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public String getLastUpdByName() {
		return this.lastUpdByName;
	}

	public void setLastUpdByName(String lastUpdByName) {
		this.lastUpdByName = lastUpdByName;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public String getPmsPaymentReceiptDetailsId() {
		return this.pmsPaymentReceiptDetailsId;
	}

	public void setPmsPaymentReceiptDetailsId(String pmsPaymentReceiptDetailsId) {
		this.pmsPaymentReceiptDetailsId = pmsPaymentReceiptDetailsId;
	}

	public String getPmsPaymentsReceivedId() {
		return this.pmsPaymentsReceivedId;
	}

	public void setPmsPaymentsReceivedId(String pmsPaymentsReceivedId) {
		this.pmsPaymentsReceivedId = pmsPaymentsReceivedId;
	}

	public String getProject() {
		return this.project;
	}

	public void setProject(String project) {
		this.project = project;
	}
	
	public String getReceivedType() {
		return this.receivedType;
	}

	public void setReceivedType(String receivedType) {
		this.receivedType = receivedType;
	}

	public String getRefDocument() {
		return this.refDocument;
	}

	public void setRefDocument(String refDocument) {
		this.refDocument = refDocument;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getSapCompanyCode() {
		return this.sapCompanyCode;
	}

	public void setSapCompanyCode(String sapCompanyCode) {
		this.sapCompanyCode = sapCompanyCode;
	}

	public String getSapPlantCode() {
		return this.sapPlantCode;
	}

	public void setSapPlantCode(String sapPlantCode) {
		this.sapPlantCode = sapPlantCode;
	}

	public String getServiceVatFlag() {
		return this.serviceVatFlag;
	}

	public void setServiceVatFlag(String serviceVatFlag) {
		this.serviceVatFlag = serviceVatFlag;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncIsstaging() {
		return this.syncIsstaging;
	}

	public void setSyncIsstaging(String syncIsstaging) {
		this.syncIsstaging = syncIsstaging;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public BigDecimal getTaxRate() {
		return this.taxRate;
	}

	public void setTaxRate(BigDecimal taxRate) {
		this.taxRate = taxRate;
	}

	public String getTaxTypeCode() {
		return this.taxTypeCode;
	}

	public void setTaxTypeCode(String taxTypeCode) {
		this.taxTypeCode = taxTypeCode;
	}

	public String getTypeOfContract() {
		return this.typeOfContract;
	}

	public void setTypeOfContract(String typeOfContract) {
		this.typeOfContract = typeOfContract;
	}

	public String getUnitNumber() {
		return this.unitNumber;
	}

	public void setUnitNumber(String unitNumber) {
		this.unitNumber = unitNumber;
	}

	public BigDecimal getVatBaseReceived() {
		return this.vatBaseReceived;
	}

	public void setVatBaseReceived(BigDecimal vatBaseReceived) {
		this.vatBaseReceived = vatBaseReceived;
	}

	public String getVatCode() {
		return this.vatCode;
	}

	public void setVatCode(String vatCode) {
		this.vatCode = vatCode;
	}

	public BigDecimal getVatReceived() {
		return this.vatReceived;
	}

	public void setVatReceived(BigDecimal vatReceived) {
		this.vatReceived = vatReceived;
	}

	public Date getVoucherDate() {
		return this.voucherDate;
	}

	public void setVoucherDate(Date voucherDate) {
		this.voucherDate = voucherDate;
	}

	public BigDecimal getVoucherNumber() {
		return this.voucherNumber;
	}

	public void setVoucherNumber(BigDecimal voucherNumber) {
		this.voucherNumber = voucherNumber;
	}

	public BigDecimal getVoucherSeq() {
		return this.voucherSeq;
	}

	public void setVoucherSeq(BigDecimal voucherSeq) {
		this.voucherSeq = voucherSeq;
	}

	public String getVoucherSeries() {
		return this.voucherSeries;
	}

	public void setVoucherSeries(String voucherSeries) {
		this.voucherSeries = voucherSeries;
	}

	public String getVoucherType() {
		return this.voucherType;
	}

	public void setVoucherType(String voucherType) {
		this.voucherType = voucherType;
	}

	public BigDecimal getWhtAmount() {
		return this.whtAmount;
	}

	public void setWhtAmount(BigDecimal whtAmount) {
		this.whtAmount = whtAmount;
	}

	public BigDecimal getWhtBaseAmount() {
		return this.whtBaseAmount;
	}

	public void setWhtBaseAmount(BigDecimal whtBaseAmount) {
		this.whtBaseAmount = whtBaseAmount;
	}

	public BigDecimal getWhtRate() {
		return this.whtRate;
	}

	public void setWhtRate(BigDecimal whtRate) {
		this.whtRate = whtRate;
	}

}